package org.dingyom.gift.exception.code;

/**
 * 错误码
 */
public enum StatusCode {
    CODE_200(200,"操作成功！"),
    CODE_500(500,"系统繁忙，稍后重试！"),
    CODE_400(4000001,"参数不正确！"),
    CODE_400_TENANT_EXSIT(4000002,"该店铺已经存在！"),
    CODE_400_TENANT_ADMIN_EXSIT(4000003,"店铺管理员已经存在！"),
    CODE_400_OSS_FILE_EXSIT(4000004,"文件不存在！"),
    CODE_400_USER_PHONE_EXSIT(4000005,"该手机号已被注册，请登陆！"),
    CODE_400_SMSCODE_EXSIT(4000006,"验证码错误或已经过期！"),
    CODE_400_USERNAMEORPASSWORD_ERROR(4000007,"账户或密码错误！"),
    CODE_403_FORBIDDEN_ACCESS(4030001,"禁止访问！"),
    CODE_500_SMS_EXSIT(5000001,"短信发送失败！"),
    CODE_500_SMS_VERIFY_EXSIT(5000002,"验证码错误！");

    //枚举属性
    private int code;
    private String message;

    StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
